package edu.sctu.practice.class02.shilaihong.text.text18;

/**
 * Created by admin on 2015/11/1.
 */
public class Auto {
    public int tires;
    public String color;
    public double load;
    public double speed;

    public Auto(int tires, String color, double load, double speed) {
        this.tires = tires;
        this.color = color;
        this.load = load;
        this.speed = speed;
    }

    public void upSpeed() {
        System.out.println("加速了！");
    }

    public void downSpeed() {
        System.out.println("减速了！");
    }

    public void stop() {
        System.out.println("停车了！");
    }

    public void getInfo() {
        System.out.println("车轮胎数：" + tires + "\n颜色：" + color + "\n车重：" + load + "\n速度：" + speed);
    }
}
